INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})

SET(TARGET_H
    plugin.h
)

SET(TARGET_SRC
    Controler.cpp
    v1.cpp
    plugin.cpp
)

SETUP_GROUP()

SET(TARGET_ADDED_LIBRARIES
    drogon
    trantor
    OCMain
    OCServer
    yaml-cpp
)

IF(WIN32)
SET(TARGET_EXTERNAL_LIBRARIES 
    ws2_32
)
ENDIF(WIN32)

SETUP_PLUGIN(ControllerMapServer)
SETUP_PLUGIN_DEP(ControllerMapServer OCMain)
SETUP_PLUGIN_DEP(ControllerMapServer OCServer)

